<?php
	/*
		Gatherer Content Managment System
		Copyright © 2007-2009 by Eric Hokanson
		Last changed on $LastChangedDate$
		Revision $Revision: 2 $
		Requires the Zend Framework (framework.zend.com)

		This program is free software: you can redistribute it and/or modify
		it under the terms of the GNU General Public License as published by
		the Free Software Foundation, either version 3 of the License, or
		(at your option) any later version.
		
		This program is distributed in the hope that it will be useful,
		but WITHOUT ANY WARRANTY; without even the implied warranty of
		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
		GNU General Public License for more details.
		
		You should have received a copy of the GNU General Public License
		along with this program.  If not, see <http://www.gnu.org/licenses/>.
	*/

	require('../dbconfig.php');

	// Our old CMS DB
	try {
		$import_db = Zend_Db::factory('Pdo_Mysql', array(
			'host'     => 'localhost',
			'username' => 'root',
			'password' => '',
			'dbname'   => 'olddb',
			'options'  => $options
		));
		$import_db->getConnection();
	} catch (Zend_Db_Adapter_Exception $e) {
		die($e->getMessage());
	}

	if ($_GET['type'] == 'mambo')
		require 'mambo.inc';
	elseif ($_GET['type'] == 'drupal')
	    require 'drupal.inc';
?>
